<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIndexTenantIdIsReviewedInReviewRequestTable extends AbstractMigration
{
    public function up()
    {
        $this->table('review_request')->addIndex(['tenant_id', 'is_reviewed'], ['name' => 'idx_tenant_id_is_reviewed', 'type' => 'normal'])->save();
    }

    public function down()
    {
        $this->table('review_request')->removeIndexByName('idx_tenant_id_is_reviewed')->save();
    }
}
